<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.io.PrintWriter"%>
<%@ page import="java.util.*"%>
<%@ page import="javax.servlet.*"%>
<%@ page import="net.sf.json.*"%>
<%@page import="model.MonHocBatBuocM"%>
<%@page import="dao.MonHocBatBuocD"%>
<%
	Map<String, Object> returnMap = new HashMap<String, Object>();
	String id = request.getParameter("id");
	MonHocBatBuocD dao = new MonHocBatBuocD();
	ArrayList<MonHocBatBuocM> ls = dao.getDetail1(Integer.parseInt(id));
	if (ls.size() > 0) {
		returnMap.put("rows", ls);
		String returnString = JSONObject.fromObject(returnMap).toString();
		PrintWriter ou = response.getWriter();
		ou.println(returnString);
		ou.flush();
		ou.close();
	}
%>